cmake_minimum_required (VERSION 2.6)

project (download_file)

include_directories ( ../../ )

if (CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "-O2")
    set(CMAKE_EXE_LINKER_FLAGS "-s")
endif()

set (sources
     main.cpp)

add_executable(download_file ${sources})

target_link_libraries(download_file curl)
